package org.tst.service;

import org.tst.controller.Action;
import org.tst.controller.Country;
import org.tst.controller.Site;

public class ActionInVoker {

	public static BaseAction get(Action actoon, Country county, Site site,
			String msg) {
		if (actoon == Action.BYPASS) {
			return new PassAction(county, site, msg);
		}
		if (actoon == Action.RETRY) {
			return new TryAction(county, site, msg);
		}

		if (actoon == Action.STATUS) {
			return new StatusAction(county, site, msg);
		}
		return new NetTsetAction();
	}
}
